<%--
  Created by IntelliJ IDEA.
  User: Yancyxiaoone
  Date: 2022/11/13
  Time: 17:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改密码</title>
    <script>
        function fun() {
            window.location.href = 'success.jsp';
        }
    </script>
</head>
<body style="text-align: center;">
<jsp:include page="/head.jsp"/>
<h1>修改密码</h1>
<form action="changepsw" method="post">
    <table style="margin: auto">
        <tr>
            <td>用户名</td>
            <td><input type="text" name="username" value="${user.getName()}" readonly="readonly"/></td>
        </tr>
        <tr>
            <td>输入密码</td>
            <td><input type="password" name="newpassword"/></td>
        </tr>
        <tr>
            <td>确认密码</td>
            <td><input type="password" name="repassword"/></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="button" value="返回" onclick="fun()"/>
                <input type="submit" value="修改密码"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
